#include<stdio.h>

int main()
{
	int num, i, count;
	char arr[100];
	scanf("%d", &num);
	if (num >= 0)
	{
		count = 0;
		i = 0;
		while (num)
		{
			arr[i++] = num % 10 + '0';
			num /= 10;
			count++;
		}
		for (i = count-1; i >= 0; i--)
		{
			printf("%c", arr[i]);
		}
	 }
	 else
	 {
	 	num *= -1;
	 	count = 0;
	 	i = 0;
		while (num)
		{
			arr[i++] = num % 10 + '0';
			num /= 10;
			count++;
		}
		printf("-");
		for (i = count-1; i >= 0; i--)
		{
			printf("%c", arr[i]);
		}
	 }
	
	return 0;
}


